package top.api.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SysUserLoginDto {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不可为空")
    private String userName;

    /**
     * 密码
     */
    @Pattern(regexp = "^[a-zA-Z0-9]{6,15}$",message = "密码格式错误")
    private String password;

    @NotBlank(message = "验证码格式错误")
    private String picCode;

    @Pattern(regexp = "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",message = "uuid格式错误")
    private String uuid;
}